<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "me_task_price".
 *
 * @property integer $id
 * @property integer $typeid
 * @property integer $gradeid
 * @property double $price
 * @property double $brush_price
 * @property integer $created_at
 * @property integer $updated_at
 */
class TaskPrice extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'me_task_price';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['typeid', 'gradeid', 'price'], 'required'],
            [['typeid', 'gradeid', 'created_at', 'updated_at'], 'integer'],
            [['price', 'brush_price'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'typeid' => '任务类型',
            'gradeid' => '代理级别',
            'price' => '单价',
            'brush_price' => '刷单价',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }
}
